GrapeCity MultiRow Windows Forms Documentation
Add(Object[]) Method


A variable number of objects that populate the cells of the new row.
Adds a new row to the collection, and populates the cells with the specified objects.
Syntax
<FeatureAttribute(Name="RowCollection", Version="v5.0")>
Public Overloads Overridable Function Add( _
   ByVal ParamArray values() As Object _
) As Integer
Dim instance As RowCollection
Dim values() As Object
Dim value As Integer
 
value = instance.Add(values)
[Feature(Name="RowCollection", Version="v5.0")]
public virtual int Add( 
   params object[] values
)

Parameters

values
A variable number of objects that populate the cells of the new row.

Return Value

A System.Int32 that indicates the index of the new row.
Exceptions
ExceptionDescription
System.InvalidOperationException

This method is accessed when Template is a null reference (Nothing in Visual Basic).

-or-

The DataSource property of the GcMultiRow control is not a null reference (Nothing in Visual Basic).

System.ArgumentNullExceptionThe values parameter is a null reference (Nothing in Visual Basic).
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RowCollection Class
RowCollection Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.